<!-- 行政执法用车申请 -->
<div>
    <div class="layui-row po_relative" style="padding: 10px;">
        <div class="layui-col-sm6 orders_left">
            <form class="layui-form">
                <div class="layui-col-sm12 ">
                    <div class="layui-col-sm12 " style="padding: 10px;">
                            <div class="layui-form-item">
                                    <div class="layui-block">
                                        <label class="layui-form-label">用车类型</label>
                                        <div class="layui-input-block">
                                            <select name="use_type" required readonly>
                                                <option selected="selected" value="1">行政执法</option>
                                            </select>
                                        </div>
                                    </div>
                            </div>
                        <div class="layui-form-item">
                            <div class="layui-block">
                                <label class="layui-form-label">乘客姓名</label>
                                <div class="layui-input-block">
                                    <input type="text" name="passenger_name" lay-verify="required" class="layui-input passenger_name">
                                    <input type="hidden" name="passenger_id" lay-verify="required" class="layui-input passenger_id">

                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-block">
                                <label class="layui-form-label">乘客电话</label>
                                <div class="layui-input-block">
                                    <input type="text" name="passenger_phone" lay-verify="required|phone" class="layui-input phone">

                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-block">
                                <label class="layui-form-label">下单人姓名</label>
                                <div class="layui-input-block">
                                    <input type="text" name="orderer_name" lay-verify="required" class="layui-input orderer_name">
                                    <input type="hidden" name="orderer_id" lay-verify="required" class="layui-input orderer_id">

                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-block">
                                <label class="layui-form-label">审批人</label>
                                <div class="layui-input-block">
                                    <input type="text" name="approval_name" lay-verify="required" class="layui-input approval_name">
                                    <input type="hidden" name="approval_id" lay-verify="required" class="layui-input approval_id">

                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-block">
                                <label class="layui-form-label">订车类型</label>
                                <div class="layui-input-block">
                                    <select name="booking_type" lay-filter="booking_type">
                                        <option value="1">订车（日常）</option>
                                        <option value="2">包车</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-block">
                                <label class="layui-form-label">车辆类型</label>
                                <div class="layui-input-block">
                                    <select name="car_type_id" class="car_type_id" lay-search lay-filter="car_type_id">
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-block">
                                <label class="layui-form-label">订单类型</label>
                                <div class="layui-input-block">
                                    <select name="order_type" lay-filter="order_type">
                                        <option value="1">公务订单</option>
                                    </select>

                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-block">
                                <label class="layui-form-label">支付方式</label>
                                <div class="layui-input-block">
                                    <select name="pay_type">
                                        <option value="3">财政订单</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-block">
                                <label class="layui-form-label">用车说明</label>
                                <div class="layui-input-block">
                                    <input type="text" name="use_explain" lay-verify="required" class="layui-input use_explain">

                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-block">
                                <label class="layui-form-label">预约时间</label>
                                <div class="layui-input-block">
                                    <input type="text" class="layui-input" name="appointment_time" id="test5" placeholder="">

                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item departure_w">
                            <div class="layui-block">
                                <label class="layui-form-label">出发地</label>
                                <div class="layui-input-block">
                                    <input type="text" name="from_addr" lay-verify="required" class="layui-input departure" placeholder="请在地图上右键选择目的地的位置">
                                    <input type="hidden" class=" from_lat" name="from_lat">
                                    <input type="hidden" class=" from_lon" name="from_lon">

                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item destination_w">
                            <div class="layui-block">
                                <label class="layui-form-label">目的地</label>
                                <div class="layui-input-block">
                                    <input type="text" name="to_addr" lay-verify="required" class="layui-input destination" placeholder="请在地图上右键选择目的地的位置">

                                    <input type="hidden" class=" to_lat" name="to_lat">
                                    <input type="hidden" class=" to_lon" name="to_lon">

                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item estimated_time_w">
                            <div class="layui-block">
                                <label class="layui-form-label">预计时间</label>
                                <div class="layui-input-block">
                                    <input type="text" lay-verify="required" class="layui-input estimated_time">
                                    <input type="hidden" name="pre_time" lay-verify="required" class="layui-input pre_time">

                                </div>
                            </div>
                        </div>



                        <div class="layui-form-item">
                            <div class="layui-block">
                                <label class="layui-form-label">预计费用</label>
                                <div class="layui-input-block">
                                    <input type="text" name="pre_fee" lay-verify="required" class="layui-input pre_fee">

                                </div>
                            </div>
                        </div>



                        <div class="layui-form-item pre_meter_w">
                            <div class="layui-block">
                                <label class="layui-form-label">预计距离</label>
                                <div class="layui-input-block">
                                    <input type="number" name="" lay-verify="required" placeholder="请输入公里数" class="layui-input distance">
                                    <input type="hidden" name="pre_meter" />

                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item is_return_w">
                            <div class="layui-block">
                                <label class="layui-form-label">是否往返</label>
                                <div class="layui-input-block">
                                    <select name="is_return">
                                        <option value="1">是</option>
                                        <option selected value="9">否</option>
                                    </select>

                                </div>
                            </div>
                        </div>


                    </div>

                </div>
                <div class="layui-col-sm12 ">
                    <div class="layui-col-sm12" style="margin: 10px 0;text-align: center;">
                        {if $Think.get.type==1}
                        <a class="layui-btn layui-btn-normal autodispatch">一键下单</a>
                        {else/}
                        <button type="button" class="layui-btn layui-btn-normal dispatch">下单</button>
                        {/if}
                    </div>

                </div>
            </form>
        </div>

        <div class="layui-col-sm5 po_fixed" style="top: 70px;right:20px;">
            <div class="layui-col-sm12 po_relative" style="margin-bottom: 5px;margin-top: 20px;">
                <div id="map" data-map='1' style="width: 100%;height: 500px;"></div>
                <div id="panel" style="display: none;"></div>
                <div id="pickerBox" style="top: 0;left: 10px;">
                    <input id="pickerInput" placeholder="输入关键字选取地点" />
                    <div id="poiInfo"></div>
                </div>
            </div>
            <div class="layui-col-sm12">
                提示：请在地图上右击选取出发地、目的地。
            </div>
        </div>

    </div>
</div>
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.2&key={:config('base.mapkey')}&plugin=AMap.Driving,AMap.Scale,AMap.OverView,AMap.ToolBar,AMap.MouseTool,AMap.DistrictSearch,AMap.MarkerClusterer"></script>
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>